package com.sky.trade;

import com.sky.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableFeignClients(defaultConfiguration = DefaultFeignConfig.class,basePackages = "com.sky.api.client")
@MapperScan("com.sky.trade.mapper") // 关键修复点：路径必须与ItemMapper实际包路径完全一致
@SpringBootApplication
public class tradeServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(tradeServiceApplication.class, args);
    }
}
